package cls.generictype.mvp;

public class MvpActivity<P extends MvpPresenter> {

    protected P mPresenter;

    public MvpActivity() {
        mPresenter = ReflectionUtils.getSuperClassGenricType(this, 0);
        if (mPresenter != null) {
            mPresenter.setV(this);
            mPresenter.setM(ReflectionUtils.getSuperClassGenricType(mPresenter, 1));
        }
    }

    public void showToast(String msg){
        System.out.println(msg);
    }
}
